home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / wildcat / wcolor.zip / WBAB.BAT < prev    next >
DOS Batch File  |  1992-06-01  |  680b  |  31 lines

  1. @echo off
  2. if "%1" == "" goto ERROR
  3.  
  4. copy %1 \wcolor.bak > nul
  5. wcolor -ib%1 -oa%1
  6. if errorlevel 0 goto THEDRAW
  7. goto ERROR
  8.  
  9. :THEDRAW
  10. d:\draw\thedraw %1
  11. wcolor -ia%1 -ob%1 -d%2
  12. if errorlevel 100 goto ABORT
  13. if errorlevel 0   goto EXIT
  14.  
  15. :ERROR
  16. echo .
  17. echo Batch format is "wbab BBS_file [speed]" --} eg. "wbab mainh.bbs 2400".
  18. echo .
  19. echo This example will display "mainh.bbs" at roughly 2400 baud, load it into
  20. echo "THEDRAW" after converting it to ansi format.  After exiting, the file is
  21. echo re-converted to BBS format under the same name.
  22. echo .
  23. if not exist \wcolor.bak goto OUT
  24.  
  25. :ABORT
  26. copy \wcolor.bak %1 > nul
  27.  
  28. :EXIT
  29. del  \wcolor.bak > nul
  30.  
  31. :OUT